package com.woniuxy.lrz.carlproject.controller.form.formgoods;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class GoodsAttachItem {
    @ApiModelProperty("商品附件表Id")
    private Integer goodAttachementId;

    @ApiModelProperty("原文件名")
    @NotBlank(message = "源文件名不能为空")
    private String oldFile;

    @ApiModelProperty("现文件名")
    @NotBlank(message = "现文件名不能为空")
    private String newFile;

    @ApiModelProperty("大小")
    @NotNull(message = "关联商品Id不能为空")
    private Long size;

    @ApiModelProperty("文件路径")
    @NotBlank(message = "文件路径不能为空")
    private String ilePath;

    @ApiModelProperty("文件后缀")
    @NotBlank(message = "文件后缀不能为空")
    private String fileSuffix;

    @ApiModelProperty("关联商品id")
    private Integer goodId;
}
